<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8"/>
	<title>局库列表</title>
	<meta name="renderer" content="webkit"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="format-detection" content="telephone=no"/>
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" type="text/css" href="../../js/plugins/TUpload/css/upload.css" />
</head>
<body class="childrenBody">
	<form class="layui-form" id="addDramaForm">
		<input type="hidden" name="actorId" id="actorId"/>
		<div class="layui-form-item">
			<label class="layui-form-label">剧库标题</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input newsName" th:value="${drama.title}" name="title" lay-verify="required" placeholder="标题的长度为5-30个汉字"/>
			</div>
		</div>

			<div class="layui-form-item">		
				<label class="layui-form-label">电视剧名</label>
				<div class="layui-input-block">
					<input type="text" th:value="${drama.name}" class="layui-input newsName" name="name" lay-verify="required" placeholder="请输入剧名..."/>
				</div>
			</div>
			<!--<div class="layui-form-item">-->
				<!--<label class="layui-form-label">题材</label>-->
				<!--<div class="layui-input-block">-->
					<!--<input type="text" th:value="${drama.theme}" class="layui-input newsName" name="theme" lay-verify="required" placeholder="如：偶像剧/武侠剧"/>-->
				<!--</div>-->
			<!--</div>-->

			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">题材</label>
					<div class="layui-input-inline">
						<select name="theme" class="newsLook" lay-filter="browseLook" id="dramaType">
							<option th:each="dramaName,iterStat:${dramaTypeList}" th:value="${iterStat.index}" th:text="${dramaName}"></option>
						</select>
					</div>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">集数</label>
				<div class="layui-input-block">
					<input type="text" th:value="${drama.chapter}" class="layui-input newsName" name="chapter" lay-verify="required" placeholder="集数：如：30、不填或填0视为待定"/>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">演员</label>
				<div class="layui-input-block">
					<input type="text" th:value="${drama.actor}" class="layui-input newsName" name="actor" id="actors" lay-verify="required" readonly="true"/>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">导演</label>
				<div class="layui-input-block">
					<input type="text" th:value="${drama.director}" class="layui-input newsName" name="director" lay-verify="required" placeholder=""/>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">出品公司</label>
				<div class="layui-input-block">
					<input type="text" th:value="${drama.commpany}" class="layui-input newsName" name="commpany" lay-verify="required" placeholder=""/>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">开播时间</label>
				<div class="layui-input-block">
					<input type="text" th:value="${drama.firstPlayTime}" class="layui-input newsTime" lay-verify="required|date" name="firstPlayTime" onclick="layui.laydate({elem:this})"/>
				</div>
			</div>

		<!--<div class="layui-form-item">-->
			<!--<label class="layui-form-label">关键字</label>-->
			<!--<div class="layui-input-block">-->
				<!--<input type="text" class="layui-input" placeholder="请输入文章关键字"/>-->
			<!--</div>-->
		<!--</div>-->
		<div class="layui-form-item">
			<label class="layui-form-label">备注项</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入备注内容" name="remark" class="layui-textarea"></textarea>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">故事梗概</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入内容摘要" class="layui-textarea"  name="description" lay-verify="content" id="dramas_content"></textarea>
			</div>
		</div>

		<input type="hidden" name="dramaUrl" id="dramaUrl"/>
		<div class="layui-form-item">
			<label class="layui-form-label">剧照上传</label>
			<div class="layui-input-block" id="T_upload">

			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="addDrama">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		</div>
	</form>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script type="text/javascript" src="../../js/plugins/TUpload/js/T_upload.js"></script>
	<script type="text/javascript" src="../../js/drama/dramaAdd.js?version=1.0.1"></script>
</body>
</html>